import request from '@/utils/request'

// 查询现场物品列表
export function listOnsite_item(query) {
  return request({
    url: '/onsite/onsite_item/list',
    method: 'get',
    params: query
  })
}

// 查询现场物品详细
export function getOnsite_item(id) {
  return request({
    url: '/onsite/onsite_item/' + id,
    method: 'get'
  })
}

// 新增现场物品
export function addOnsite_item(data) {
  return request({
    url: '/onsite/onsite_item',
    method: 'post',
    data: data
  })
}

// 修改现场物品
export function updateOnsite_item(data) {
  return request({
    url: '/onsite/onsite_item',
    method: 'put',
    data: data
  })
}

// 删除现场物品
export function delOnsite_item(id) {
  return request({
    url: '/onsite/onsite_item/' + id,
    method: 'delete'
  })
}
